//路由配置   dir为page目录下名称

const routerConfig = [
    {
        path: '/container',
        name: 'container',
        dir: 'container',
        redirect: { name: 'sceneList' },
        level: 0,
        router: true,
        parent: 'price.vue',
        children: [
            {
                path: '/container/sceneList',
                name: 'sceneList',
                dir: 'components/views/sceneList',
                text: '活动场景',
                icon: 'iconfont ss-diamond',
                level: 1,
                parent: 'container',
                router: true,
            },
            {
                path: '/container/orderManage',
                name: 'orderManage',
                dir: 'components/views/orderManage',
                text: '订单管理',
                icon: 'iconfont ss-dingdan',
                level: 1,
                parent: 'container',
                router: true,
            },
            {
                path: '/container/invoiceManage',
                name: 'invoiceManage',
                dir: 'components/views/invoiceManage',
                text: '发票管理',
                icon: 'iconfont ss-page',
                level: 1,
                parent: 'container',
                router: true,
            },
            // {
            //     path: '/container/redEnvelopes',
            //     name: 'redEnvelopes',
            //     dir: 'components/views/redEnvelopes',
            //     text: '红包管理',
            //     icon: 'iconfont ss-redpaper',
            //     level: 1,
            //     parent: 'container',
            //     router: true,
            // },
            {
                path: '/container/accountManage',
                name: 'accountManage',
                dir: 'components/views/accountManage',
                text: '账户信息',
                icon: 'iconfont ss-user',
                level: 1,
                parent: 'container',
                router: true,
            },
            {
                path: '/container/back',
                name: 'back',
                redirect: { path: '/container/sceneList' },
                text: '返回活动场景',
                icon: 'iconfont ss-backward',
                level: 2,
                parent: 'container',
                router: false,
            },
            {
                path: '',
                name: 'sceneManage',
                text: '场景管理',
                level: 2,
                parent: 'container',
                router: false,
                icon: 'iconfont ss-caidan',
                children: [
                    {
                        path: '/sceneManage/messageReview',
                        name: 'messageReview',
                        dir: 'components/views/sceneManage/messageReview',
                        text: '消息审核',
                        level: 3,
                        parent: 'sceneManage',
                        router: true,
                    },
                    {
                        path: '/sceneManage/prizeExchange',
                        name: 'prizeExchange',
                        dir: 'components/views/sceneManage/prizeExchange',
                        text: '奖励兑换',
                        level: 3,
                        parent: 'sceneManage',
                        router: true,
                    },
                    {
                        path: '/sceneManage/dataStatistics',
                        name: 'dataStatistics',
                        dir: 'components/views/sceneManage/dataStatistics',
                        text: '数据统计',
                        level: 3,
                        parent: 'sceneManage',
                        router: true,
                    },
                ],
            },
            {
                path: '',
                name: 'baseSetting',
                text: '整体功能',
                level: 2,
                parent: 'container',
                router: false,
                icon: 'iconfont ss-func',
                children: [
                    {
                        path: '/baseSetting/baseSettings',
                        name: 'baseSettings',
                        dir: 'components/views/baseSetting/baseSetting',
                        text: '基础设置',
                        level: 3,
                        parent: 'baseSetting',
                        router: true,
                    },
                    {
                        path: '/baseSetting/audienceSignIn',
                        name: 'audienceSignIn',
                        dir: 'components/views/baseSetting/audienceSignIn',
                        text: '观众签到',
                        level: 3,
                        parent: 'baseSetting',
                        router: true,
                    },
                    {
                        path: '/baseSetting/barrage',
                        name: 'barrage',
                        dir: 'components/views/baseSetting/barrage',
                        text: '弹幕',
                        level: 3,
                        parent: 'baseSetting',
                        router: true,
                    },
                ],
            },
            {
                path: '',
                name: 'pageSetting',
                text: '分页设置',
                level: 2,
                parent: 'container',
                router: false,
                icon: 'iconfont ss-page-slice',
                children: [
                    {
                        path: '/pageSetting/scrollScreen',
                        name: 'scrollScreen',
                        dir: 'components/views/pageSetting/scrollScreen',
                        text: '滚屏',
                        level: 3,
                        parent: 'pageSetting',
                        router: true,
                    },
                    {
                        path: '/pageSetting/signInDetail',
                        name: 'signIn',
                        dir: 'components/views/pageSetting/signInDetail',
                        text: '签到展示',
                        level: 3,
                        parent: 'pageSetting',
                        router: true,
                    },
                    {
                        path: '/pageSetting/prizeDraw',
                        name: 'prizeDraw',
                        dir: 'components/views/pageSetting/prizeDraw',
                        text: '抽奖',
                        level: 3,
                        parent: 'pageSetting',
                        router: true,
                    },
                    {
                        path: '/pageSetting/loopPlay',
                        name: 'loopPlay',
                        dir: 'components/views/pageSetting/loopPlay',
                        text: '轮播',
                        level: 3,
                        parent: 'pageSetting',
                        router: true,
                    },
                    {
                        path: '/pageSetting/userDefined',
                        name: 'userDefined',
                        dir: 'components/views/pageSetting/userDefined',
                        text: '自定义',
                        level: 3,
                        parent: 'pageSetting',
                        router: true,
                    },
                    {
                        path: '/pageSetting/barrage',
                        name: 'barrage',
                        dir: 'components/views/baseSetting/barrage',
                        text: '弹幕',
                        level: 3,
                        parent: 'pageSetting',
                        router: true,
                    },
                ],
            },
        ],
    },
];

const htmlRoutersConfig = [
    {
        path: '/home',
        name: 'home',
        dir: 'home',
        text: 'home',
        router: true,
    },
    {
        path: '/product',
        name: 'product',
        dir: 'html/product',
        text: 'product',
        router: true,
    },
    {
        path: '/productDetail',
        name: 'productDetail',
        dir: 'html/productDetail',
        text: 'productDetail',
        router: true,
    },
    {
        path: '/price',
        name: 'price',
        dir: 'html/price',
        text: 'price',
        router: true,
    },
    {
        path: '/resolve',
        name: 'resolve',
        dir: 'html/resolve',
        text: 'resolve',
        router: true,
    },
    {
        path: '/resolveDetail',
        name: 'resolveDetail',
        dir: 'html/resolveDetail',
        text: 'resolveDetail',
        router: true,
    },
    {
        path: '/demo',
        name: 'demo',
        dir: 'html/demo',
        text: 'demo',
        router: true,
    },
    {
        path: '/help',
        name: 'help',
        dir: 'html/help',
        text: 'help',
        router: true,
    },
    {
        path: '/about',
        name: 'about',
        dir: 'html/about',
        text: 'about',
        router: true,
    },
];
export { routerConfig, htmlRoutersConfig };
